home *** CD-ROM | disk | FTP | other *** search
/ Belgian Amiga Club - ADF Collection / BS1 part 05.zip / BS1 part 5 / SASC_6.0_Disk_4.adf / Compiler_Headers / Include / dos / record.h < prev    next >
C/C++ Source or Header  |  1992-07-30  |  743b  |  37 lines

  1. #ifndef DOS_RECORD_H
  2. #define DOS_RECORD_H
  3. /*
  4. **
  5. **    $Filename: dos/record.h $
  6. **    $Release: 2.04 Includes, V37.4 $
  7. **    $Revision: 36.5 $
  8. **    $Date: 90/07/12 $
  9. **
  10. **    include file for record locking
  11. **
  12. **    (C) Copyright 1989-1991 Commodore-Amiga, Inc.
  13. **        All Rights Reserved
  14. **
  15. */
  16.  
  17. #ifndef DOS_DOS_H
  18. #include "dos/dos.h"
  19. #endif
  20.  
  21. /* Modes for LockRecord/LockRecords() */
  22. #define REC_EXCLUSIVE        0
  23. #define REC_EXCLUSIVE_IMMED    1
  24. #define REC_SHARED        2
  25. #define REC_SHARED_IMMED    3
  26.  
  27. /* struct to be passed to LockRecords()/UnLockRecords() */
  28.  
  29. struct RecordLock {
  30.     BPTR    rec_FH;        /* filehandle */
  31.     ULONG    rec_Offset;    /* offset in file */
  32.     ULONG    rec_Length;    /* length of file to be locked */
  33.     ULONG    rec_Mode;    /* Type of lock */
  34. };
  35.  
  36. #endif /* DOS_RECORD_H */
  37.